/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.ufpb.halloc.dados;

/**
 *
 * @author Rennan
 */
public class TurmaDAOBDFactory extends TurmaDAOFactory{
    
    public static final int PGSQL = 1;
    private static TurmaDAOBDFactory turmaDAOfactory;
    
    private TurmaDAOBDFactory (){
        //TODO
    }
    
    //Singleton
    public static TurmaDAOFactory getInstance() {
        if (turmaDAOfactory == null)
            return new TurmaDAOBDFactory();
        else
            return turmaDAOfactory;
    }

    @Override
    public TurmaDAO getTurmaDAO(int tipo) {
        switch (tipo){
            case PGSQL:
                return TurmaDAOPostgreSQL.getInstance();
            default:
                return null;
        }
            
       
    }
    
}
